
<td colspan="5">
<div class="pull-right">
<!--<a  id="ok" onclick="print_report()" href="<?= site_url('accounts/party/print_uniqueparty/')."/".$data->id_user ?>" ></a>-->	

<a href="<?= site_url('accounts/party/print_uniquesupplier/')."/".$data->id_user ?>" onclick="window.open(this.href, 'mywin',
'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" ><i class="icon-print"></i></a>
</div>
<div id='print<?php echo $counter; ?>'>
<table class="table" border="1px" bordercolor="#e1dfe0" width="100%" >
	<thead>
   
      <tr>
        <th colspan="4" valign="middle"><h3 align="center">Account Details of <?php echo $data->user_name;?> </h3><hr><p>Party Name: <?php echo $data->user_name;?><br>Tin No: <?php echo $data->tin_no;?><br>Party Email: <?php echo $data->user_email;?><br>Address: <?php echo $data->user_address;?><p></th>
	</tr>
    <tr>
		<th>Voucher No</th>
        <th>Date</th>
        <th>Debit Amount</th>
		<th>Credit Amount</th>
	</tr>
    </thead>
	<?php foreach ($parties as $party1):?>
		<tr>
			<td><?php  echo $party1->voucher_no; ?></td>
            <td><?php  echo $party1->date; ?></td>
            <td><?php  echo $party1->debit_amount; ?></td>
			<td><?php  echo $party1->credit_amount; ?></td>
		
		</tr>
	<?php endforeach;?>
	<tr>
				<td class="text-error"><b>Total Debit</b> </td>
    	        <td>&nbsp;</td>
            	<td class="text-error"><b><?php  echo $data->debit; ?></b></td>
				<td>&nbsp;</td>
				
	</tr>
	<tr>
				<td class="text-error"><b>Total Credit</b></td>
    	        <td>&nbsp;</td>
            	<td>&nbsp;</td>
				<td class="text-error"><b><?php  echo $data->credit; ?><b></td>
				
	</tr>
	<tr>
				<td class="text-error"><b>Balance</b></td>
    	        <td>&nbsp;</td>
            	<td>&nbsp;</td>
				<td class="text-error"><b><?php  echo ($data->credit-$data->debit); ?></b></td>
				
	</tr>


</table>
<div align="center">****************Account Details of <?php echo $data->user_name;?> ********************* </div>
</div>
</td>